<template>
  <div class="hljs-container" codetype="JavaScript" v-code-view>
    <highlightjs
      language="JavaScript"
      :autodetect="false"
      :code="code"
    />
  </div>
</template>

<script setup lang="ts">
import { propTypes } from '@/utils/propTypes'
import vCodeView from './code-view';
defineProps({
  code: propTypes.string
})
</script>

<style scoped lang="scss">
</style>